package com.chenjt.netty.seven_decorator;

/**
 * 注释：具体装饰角色
 *
 * @author chenjt
 * @date 2024/8/19 11:24
 */
public class ConcreteDecorator2 extends Decorator{

    public ConcreteDecorator2(Component component){
        super(component);
    }

    @Override
    public void doSomething() {
        super.doSomething();
        this.doAnotherThing();
    }

    private void doAnotherThing(){
        System.out.println("功能C");
    }


}
